<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>省级驳回</title>
	<meta name="decorator" content="default"/>
	<link type="text/css" rel="stylesheet" href="${ctxCss}/common/layerBtn.css" />
	<script type="text/javascript">
        var path="${ctx}";
		$(document).ready(function() {
			$("#inputForm").validate({
				submitHandler: function(form){
                    $.ajax({
                        url: path+"/bus/vaccine/provinceReject",
                        type: "post",
                        data: $(form).serialize(),
                        async : false,
                        success : function(result) {
							top.$.jBox.tip("驳回成功！", "info");
							parent.parent.window.location.reload();
                        }
                    });
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<form:form id="inputForm" modelAttribute="vaccine" action="" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<form:hidden path="auditId"/>
		<sys:message content="${message}"/>		
		<div class="control-group" style="margin-top:20px;">
			<label class="control-label"><span style="color: red;">*</span>请填写驳回理由：</label>
			<div class="controls">
				<form:textarea path="audit.auditOpinion" class="input-medium required" maxlength="100" style="width:300px;height:230px"/>
			</div>
		</div>
	</form:form>
</body>
</html>